import { T_srv, Tsrv, ifs, ts, tvs, vue } from '@/services';
import { I_cmd, T_cmd } from './command';
import { N_wasteGasTreatment } from './type';

const phTanks = (): N_wasteGasTreatment.PhTank[] => [
  {
    name: '酸碱风机PH添加',
    upAlarmLimit: {
      value: 12.0,
      code: 'mycWasteGasTreatment001',
      conversionRate: 1000
    },
    setUpperLimit: {
      value: 11.0,
      code: 'mycWasteGasTreatment005',
      conversionRate: 1000
    },
    setLowerLimit: {
      value: 2.0,
      code: 'mycWasteGasTreatment006',
      conversionRate: 1000
    },
    lowAlarmLimit: {
      value: 1.5,
      code: 'mycWasteGasTreatment002',
      conversionRate: 1000
    },
    actualValue: {
      value: 7.0,
      code: 'mycWasteGasTreatment009',
      conversionRate: 1000
    },
    autoSwitch: { value: false, code: 'mycWasteGasTreatment011' },
    waterStatus: { value: false, code: 'mycWasteGasTreatment013' },
    alarmStatus: { value: true, code: 'mycWasteGasTreatment015' },
    levelStatus: { value: false, code: 'my876' }
  },
  {
    name: '铬风机PH添加',
    upAlarmLimit: {
      value: 12.0,
      code: 'mycWasteGasTreatment003',
      conversionRate: 1000
    },
    setUpperLimit: {
      value: 11.0,
      code: 'mycWasteGasTreatment007',
      conversionRate: 1000
    },
    setLowerLimit: {
      value: 2.0,
      code: 'mycWasteGasTreatment008',
      conversionRate: 1000
    },
    lowAlarmLimit: {
      value: 1.5,
      code: 'mycWasteGasTreatment004',
      conversionRate: 1000
    },
    actualValue: {
      value: 7.0,
      code: 'mycWasteGasTreatment010',
      conversionRate: 1000
    },
    autoSwitch: { value: false, code: 'mycWasteGasTreatment012' },
    waterStatus: { value: false, code: 'mycWasteGasTreatment014' },
    alarmStatus: { value: false, code: 'mycWasteGasTreatment016' },
    levelStatus: { value: false, code: 'my877' }
  }
];

const fans = (): N_wasteGasTreatment.fan[] => [
  {
    type: 'acid',
    power: {
      code: 'my913',
      value: false
    },
    speed: {
      code: 'my914',
      value: 'low'
    },
    spray: {
      code: 'my915',
      value: false
    }
  },
  {
    type: 'chrome',
    power: {
      code: 'my916',
      value: false
    },
    speed: {
      code: 'my917',
      value: 'low'
    },
    spray: {
      code: 'my918',
      value: false
    }
  }
];

export {
  I_cmd,
  N_wasteGasTreatment,
  T_cmd,
  T_srv,
  Tsrv,
  fans,
  ifs,
  phTanks,
  ts,
  tvs,
  vue
};
